/**
 * <p>版权所有：中企动力
 * <p>未经本公司许可，不得以任何方式复制或使用本程序任何部分
 */
package com.ce.pms.base.dao;
/**
 *
 * 功能描述: OrderEntry
 *
 * @author  王仰周
 * Created on：  2008-6-30
 */
public class OrderEntry {
	public static final int ORDER_DESC = -1;

	public static final int ORDER_ASC = 1;

	private Object key = null;

	private int order = ORDER_ASC;

	public String toString() {
		return this.getClass().getName() + "[ key=" + this.key + ", order="
				+ this.order + " ]";
	}

	public OrderEntry() {
	}

	public OrderEntry(Object key, int order) {
		this.key = key;
		this.order = order;
	}

	public void setKey(Object key) {
		this.key = key;
	}

	public Object getKey() {
		return key;
	}

	public void setDirection(int order) {
		this.order = order;
	}

	public int getDirection() {
		return order;
	}
}
